from flask import Flask


def create_http(env="default"):
    '''
    根据配置实例化 App对象
    '''
    app = Flask(__name__)
    # 注册蓝图
    from apps.api.v1 import api_bp
    app.register_blueprint(api_bp)
    return app
